<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<h1><fmt:message key="order.form.title"/></h1>

<c:if test="${not empty statusMessageKey}">
    <p><fmt:message key="${statusMessageKey}"/></p>
</c:if>

<c:url var="url" value="/order/form.html" /> 
<form:form action="${url}" commandName="order">
    <form:hidden path="ordernum" />

    <fieldset>
        <div class="form-row">
            <label for="ordernum"><fmt:message key="order.form.ordernum"/>:</label>
            <span class="input"><form:input path="ordernum" /></span>
        </div>       
        <div class="form-row">
            <label for="orderdate"><fmt:message key="order.form.orderdate"/>:</label>
            <span class="input"><form:input path="orderdate" /></span>
        </div>       
        <div class="form-row">
            <label for="ordercreatedate"><fmt:message key="order.form.ordercreatedate"/>:</label>
            <span class="input"><form:input path="ordercreatedate" /></span>
        </div>       
        <div class="form-row">
            <label for="provisiondate"><fmt:message key="order.form.provisiondate"/>:</label>
            <span class="input"><form:input path="provisiondate" /></span>
        </div>       
        <div class="form-row">
            <label for="installdate"><fmt:message key="order.form.installdate"/>:</label>
            <span class="input"><form:input path="installdate" /></span>
        </div>       
        <div class="form-row">
            <label for="installcompleted"><fmt:message key="order.form.installcompleted"/>:</label>
            <span class="input"><form:input path="installcompleted" /></span>
        </div>       
        <div class="form-row">
            <label for="agentid"><fmt:message key="order.form.agentid"/>:</label>
            <span class="input"><form:input path="agentid" /></span>
        </div>       
        <div class="form-row">
            <label for="customername"><fmt:message key="order.form.customername"/>:</label>
            <span class="input"><form:input path="customername" /></span>
        </div>       
        <div class="form-row">
            <label for="customeraddress"><fmt:message key="order.form.customeraddress"/>:</label>
            <span class="input"><form:input path="customeraddress" /></span>
        </div>       
        <div class="form-row">
            <label for="customerphone"><fmt:message key="order.form.customerphone"/>:</label>
            <span class="input"><form:input path="customerphone" /></span>
        </div>       

        <div class="form-buttons">
            <div class="button"><input name="submit" type="submit" value="<fmt:message key="button.save"/>" /></div>
        </div>
    </fieldset>
</form:form>